home *** CD-ROM | disk | FTP | other *** search
- unit Show1;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, ExtCtrls, StdCtrls, Buttons, Show2, GrayForm;
-
- type
- TForm1 = class(TForm)
- BitBtn1: TBitBtn;
- BitBtn2: TBitBtn;
- BitBtn3: TBitBtn;
- Edit1: TEdit;
- Edit2: TEdit;
- Edit3: TEdit;
- Edit4: TEdit;
- Edit6: TEdit;
- Memo1: TMemo;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- Label5: TLabel;
- Label6: TLabel;
- Bevel1: TBevel;
- procedure BitBtn1Click(Sender: TObject);
- procedure BitBtn2Click(Sender: TObject);
- private
- { Private-Deklarationen }
- public
- { Public-Deklarationen }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.BitBtn1Click(Sender: TObject);
- begin
- GrayedForm(SELF);
- Form2.ShowModal;
- UnGrayedForm(SELF); { don't forget !!! }
- end;
-
- procedure TForm1.BitBtn2Click(Sender: TObject);
- var i : integer;
- begin
- Form2.Show; { first this ! }
- GrayedForm(SELF); { now this ! }
- for i := 1 to 1000 do
- begin
- { do something }
- Form2.Label1.caption := inttostr(i);
- Form2.Label1.Update;
- end;
- Form2.Hide;
- UnGrayedForm(SELF); { don't forget !!! }
- end;
-
- end.
-